package com.youuvs.service.impl;

import com.youuvs.domain.Product;
import com.youuvs.mapper.ProductMapper;
import com.youuvs.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ProductServiceImpl implements IProductService {

    @Autowired
    private ProductMapper productMapper;
    @Override
    public Product getById(Long id) {
        return productMapper.getById(id);
    }

    @Override
    public void insert(Product product) {

        productMapper.insert(product);

    }
}
